//
// Created by User on 24-10-5.
//

#include "audio_decoder.h"

#include <libavutil/rational.h>

namespace decoder
{
    audio_decoder::audio_decoder(general_decoder& decoder)
        : m_decoder(decoder)
    {
    }

    utils::media_frame audio_decoder::get_frame()
    {
        return this->m_decoder.get_frame();
    }

    const AVCodecParameters* audio_decoder::get_codec() const
    {
        return this->m_decoder.get_codec();
    }

    AVRational audio_decoder::get_timebase() const
    {
        return this->m_decoder.get_timebase();
    }

    int audio_decoder::total_frames() const
    {
        return this->m_decoder.total_frame();
    }
}
